- Milbemycin Oxime and Ivermectin These can help prevent heartworm disease and also treat some intestinal worms. They should be used with caution, as certain dog breeds may be more sensitive to these medications.